//
//  UserDetailInfoTableViewCell.m
//  MemberProject
//
//  Created by macbook on 15/4/14.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import "UserDetailInfoTableViewCell.h"

@implementation UserDetailInfoTableViewCell

- (void)awakeFromNib {
    if(self.keyLabel==nil){
        self.keyLabel=[[UILabel alloc]initWithFrame:CGRectMake(12, 0, 100, self.height)];
        [self.contentView addSubview:self.keyLabel];
        self.keyLabel.numberOfLines=0;
    }
    if(self.valueLabel==nil){
        self.valueLabel=[[UILabel alloc]initWithFrame:CGRectMake(self.keyLabel.x+self.keyLabel.width, 0, (SCREEN_WIDTH-self.keyLabel.x-self.keyLabel.width), self.height)];
        [self.contentView addSubview:self.valueLabel];
        self.valueLabel.numberOfLines=0;
    }
////    self.keyLabel.frame=CGRectMake(8, 0, (SCREEN_WIDTH-2*8)/2, self.height);
////    self.valueLabel.frame=CGRectMake(self.keyLabel.x+self.keyLabel.width, 0, (SCREEN_WIDTH-2*8)/2, self.height);
//    // Initialization code
//    self.keyLabel.adjustsFontSizeToFitWidth=YES;
//    self.valueLabel.adjustsFontSizeToFitWidth=YES;
//    self.selectionStyle=UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
